<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <title>一笑网首页</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link rel="stylesheet" href="../../static/layui/css/layui.css" />
        <link rel="stylesheet" href="../../static/css/yx.css" />
        <script src="../../static/js/jquery-2.1.4.min.js" ></script>
        <script type="text/javascript" src="../../static/layui/layui.all.js" ></script>
        <script src="../../static/js/yx.js" >/*公共js*/</script>
        
        <style type="text/css">
        	.cc{margin-top: 1.5em;}
        	.c1{width: calc(100% - 31rem);min-height: 20rem;border:0px #000 solid;float: left;}
        	.c2{width: 30rem;min-height: 20rem;border:0px #000 solid;float: right;}
        	
        	.fenyefox *{border-radius: 0px !important;clear: both;}
        	#fenye span{background-color: rgba(0,0,0,0);color: #000;}
        	
        </style>
        <script type="text/javascript">
        	
        	
        	$(function(){
        		
        		//分页
				var laypage = layui.laypage;
				laypage.render({
					elem:'fenye',
					count:"${page.count}",
					curr:"${page.pn}",
					limits:[1,5,10,15,20],
					limit:"${page.pz}",
					layout: [ 'prev', 'page', 'next', 'limit', 'skip'],
					theme: '#1E9FFF',
					jump: function(obj,first) {
						if(!first){
							layer.msg(obj.curr);
							location.href="index.html?did=${did}&xid=${xid}&pn="+obj.curr+"&pz="+obj.limit+"&sou="+encodeURI("${sou}");
						}
					}
				});
        		
        		
        		//再来一波
        		var did="${did}";
        		var xid="${xid}";
        		if(did==1&&xid==1){
        			$(".fenyefox").hide();
        			$(".zlyb").show();
        		}
        		
        		$('.zlyb').click(function(){
        			location.href="index.html";
        		})
        		
        		
        	})
        	
        	
        </script>
    </head>
    <body>
    	<div class="aa"> 
    		<%@include file="../in/in_head.jsp"%> <!-- 头部导入 -->
    	</div>
    	
    	<div class="cc yx-max-width yx-phone-max">
    		<div class="c1 yx-phone-max">
    			
    			<%@include file="../in/in_post.jsp"%> <!-- 帖子遍历导入 -->
    			
    		</div>
    		<div class="c2 yx-phone-max">
    			
    			<div style="background-color: #FFF;">
    				<%@include file="../in/in_login_user.jsp"%> <!-- 当前登录用户导入 -->
    			</div>
    			
				<div style="min-height: 200px;margin-top: 0.5em; background-color: #FFF;">
					<%@include file="../in/in_youtj.jsp"%> <!-- 右部导入 -->
				</div>
				
    		</div>
    		
    		<div class="fenyefox">
				<div id="fenye"> <!-- 牛逼的分页 哈哈 --> </div>
			</div>
    		
    		<br style="clear: both;"/>
    		<br />
			<button class="zlyb layui-btn layui-btn-primary" style="clear: both;display: none;">再来一波</button>
    		<span class="zlyb" style="color: #999;display: none;">在导航栏下部选择 首页>全部 即可分页浏览</span>
    		
    	</div>
    	
    	
    	<br style="clear: both;" /><br /><br />
    	<div class="ff">
    		<%@include file="../in/in_bottom.jsp"%> <!-- 底部版权导入 -->
    	</div>
    	
    	
    	
 	</body>
</html>